package game.ui;

import javax.swing.*;

public class DialogUtil {
    public static void showDialog(String content) {
        JDialog jd = new JDialog();
        jd.setTitle("拼图游戏提醒您：");
        jd.setSize(200, 150);
        JLabel jLabel = new JLabel(content);
        jd.getContentPane().add(jLabel);
        jd.setModal(true);
        jd.setLocationRelativeTo(null);
        jd.setAlwaysOnTop(true);
        //jd.setBounds(0, 0, 200, 150);
        jd.setVisible(true);
    }
}
